package at.btd.bsk;

import android.os.Bundle;
import android.preference.EditTextPreference;
import android.text.method.DigitsKeyListener;
import android.widget.EditText;

public class PreferenceActivity extends android.preference.PreferenceActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.preferences);
		
		EditTextPreference pref = (EditTextPreference) findPreference("warnVelocity");
        EditText txt = (EditText)pref.getEditText(); 
        txt.setKeyListener(DigitsKeyListener.getInstance(false,true));
        
        pref = (EditTextPreference) findPreference("warnVelocity2");
        txt = (EditText)pref.getEditText(); 
        txt.setKeyListener(DigitsKeyListener.getInstance(false,true));
	}
}
